<?php

class Module_translate {

function __construct()
{
	/*
			$CI =& get_instance();
            $CI->load->add_package_path('packages/settings');
        
            // load settings library from settings package
            $CI->load->library('settings');
			$CI->load->library('packages');
	*/			
}

public function route_status_word($status_code)
{
	switch ($status_code)
	{
		case 0:
			$word = lang('term_closed');
		break;
		
		case 1:
			$word = lang('term_open');
		break;
		
		case 2:
			$word = lang('term_pending_open');
		break;	
		
		case 3:
			$word = lang('term_pending_close');
		break;
	}
	return $word;
}

public function route_type_word($type)
{
	$word = lang("term_".$type);
	
	return $word;
}

public function route_option($status_code)
{
	switch($status_code)
	{
		case 0:
			$option = lang("term_reopen");
		break;
	
		case 1:
			$option = lang("term_close");
		break;
		
		case 2:
			$option = lang("term_pending");
		break;
		
		case 3:
			$option = lang("term_pending");
		break;			
	}	
	return $option;
}

}
?>